package main;

import java.io.FileNotFoundException;
import java.io.IOException;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import kernel.Valores;
import view.FrameSimulacao;

import com.jgoodies.looks.plastic.Plastic3DLookAndFeel;
import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import com.jgoodies.looks.plastic.theme.DarkStar;

public class Main extends Valores {
	/**
	 * Classe que chama a janela principal do programa
	 * 
	 * @param args
	 * @throws FileNotFoundException
	 * @throws IOException
	 */
	public static void main(String[] args) throws FileNotFoundException,
			IOException {

		// configuracoes do jgoodies para layout e tema
		PlasticLookAndFeel.setPlasticTheme(new DarkStar());

		try {
			UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
		} catch (UnsupportedLookAndFeelException ex) {
			ex.printStackTrace();
		}

		// Cria tela e exibe
		FrameSimulacao janela = new FrameSimulacao();
		janela.setSize(640, 480);
		janela.setVisible(true);

	}

	public double getINTERVALO_DE_CONFIANCA() {
		return INTERVALO_DE_CONFIANCA;
	}

	public static void setINTERVALO_DE_CONFIANCA(double ic) {
		INTERVALO_DE_CONFIANCA = ic;
	}

}
